package com.web.gen.provider;

import com.web.gen.IModelProvider;
import com.web.gen.model.IModel;

/**
 * 实体类中方法的实现
 * <p>File：JavaMethodProvider.java</p>
 * <p>Title: JavaMethodProvider</p>
 * <p>Description:JavaMethodProvider</p>
 * <p>Copyright: Copyright (c) May 26, 2015</p>
 * <p>Company: 8637.com</p>
 * @author Playguy
 * @version 1.0
 */
@SuppressWarnings("rawtypes")
public class JavaMethodProvider implements IModelProvider
{
	
	private String	methodName;
	
	private Class	clazz;
	
	public JavaMethodProvider(Class clazz, String methodName)
	{
		super();
		this.clazz = clazz;
		this.methodName = methodName;
	}
	
	public IModel getModel()
	{
		return JavaModelHelper.getInstance().createJavaMethod(clazz, methodName);
	}
	
}
